#include <stdio.h>
int main() {
	char ch = 0;
	FILE *p_file = fopen("a.txt", "rb");
	if(p_file) {
		for(int num = 0; num < 5; num++) {
			fseek(p_file, -(num+2), SEEK_END);
			printf("位置指针是%d\n",ftell(p_file));
			fread(&ch, sizeof(char), 1, p_file);
			printf("%c\n", ch);
		}
		fclose(p_file);
		p_file = NULL;
	}
	return 0;
}
